package com.mccrea.pattern.command;

/**
 * @Classname Client
 * @Description 测试客户端
 * @Date 2021/5/18 0018 10:49
 * @Created by Mccrea_Gao
 */
public class Client {
    public static void main(String[] args) {
        // 电视
        Television television = new Television();
        TeleController teleController = new TeleController();
        teleController.switchCommand(new Cctv1Command(television));
        teleController.switchCommand(new Cctv2Command(television));
//        teleController.switchCommand(new Cctv3Command(television));
        System.out.println("返回");
        teleController.back();

    }


}


